<script setup lang="ts">
import SvgIcon from "@/components/common/SvgIcon.vue";

</script>

<template>
  <div class="album-info">
    <div class="album-header">
      <div class="album-visibility">
        仅自己可见
      </div>
      <div class="album-title">
        旅游之行
      </div>
      <div class="album-description">
        <p>每一张照片都是一次美好的记忆。</p>
      </div>
      <div class="article-info-other">
        <div class="album-author">
          <SvgIcon class-name="logo" icon-class="user" />
          <div class="album-author-name">
            干将莫邪
          </div>
        </div>
        <div class="album-info-time">
          <SvgIcon class-name="icon" icon-class="发布日期" />
          2023-08-24
        </div>
      </div>
    </div>
    <h1>文章详情</h1>
  </div>
</template>

<style scoped lang="less">
.album-info{
  margin-top: -477px; /* 上移 477 像素 */
  .album-header{
    .album-visibility{
      width: 300px;
      height: 40px;
      border-radius: 8px;
      mix-blend-mode: hard-light;
      background: linear-gradient(90deg, #eb5c8833 0%, #eb5c8800 103.67%);
      color: #EB5C88;
      text-align: center;
      line-height: 40px;
    }
    .album-title{
      margin-top: 24px;
      width: 400px;
      height: 48px;
      color: #ffffff;
      font-weight: 700;
      font-size: 40px;
      line-height: 48px;
    }
    .album-description{
      width: 300px;
      & > p{
        height: 140px;
        color: #ffffff;
        font-weight: 400;
        font-size: 20px;
        line-height: 24px;
        margin-top: 12px;
        overflow: hidden;         /* 超出容器部分隐藏 */
        text-overflow: ellipsis;  /* 超出部分显示省略号 */
      }
    }
    .article-info-other{
      display: flex;
      align-items: center;
      .album-author {
        display: flex;
        align-items: center;
        color: #ffffff;
        .logo {
          width: 24px;
          height: 24px;
          border-radius: 50%;
        }
        .album-author-name {
          margin-left: 8px;
          font-size: 14px;
          font-weight: bold;
          line-height: 20px;
        }
      }
      .album-info-time{
        margin-left: 24px;
        height: 20px;
        color: #ffffff;
        font-size: 14px;
        display: flex;
        align-items: center;
      }
    }
  }
}
</style>
